// $codepro.audit.disable com.instantiations.assist.eclipse.analysis.audit.rule.effectivejava.alwaysOverridetoString.alwaysOverrideToString, largeNumberOfParameters
/**
 * Package domain
 */
package teamrocket.domain; // $codepro.audit.disable packagePrefixNamingConvention

import java.util.logging.Level;

import teamrocket.logging.TLogger;

/**
 * Represents personal information in the database
 * @author Stephen
 * @version 1.0
 */
public class PersonalInformation{ // $codepro.audit.disable com.instantiations.assist.eclipse.analysis.audit.rule.effectivejava.alwaysOverridetoString.alwaysOverrideToString
	
	/**
	 * Field name.
	 */
	private String name;
	
	/**
	 * Field address.
	 */
	private String address;
	
	/**
	 * Field phoneNumber.
	 */
	private String phoneNumber;
	
	/**
	 * Field emailAddress.
	 */
	private String emailAddress;
	
	/**
	 * Field gender.
	 */
	private char gender;
	
	/**
	 * Field age.
	 */
	private int age;
	
	/**
	 * Constructs a personal information object in memory
	 * @param name
	 * @param address
	 * @param phoneNumber
	 * @param emailAddress
	 * @param gender
	 * @param age
	 */
	public PersonalInformation(String name, String address, String phoneNumber,
			String emailAddress, char gender, int age) {
		this.name = name;
		this.address = address;
		this.phoneNumber = phoneNumber;
		this.emailAddress = emailAddress;
		this.gender = gender;
		this.age = age;
		TLogger.getInstance().getLogger().log(Level.INFO,
				"Creating new Personal Information for " + name);
	}
	
	/**
	 * Method getName.
	 * @return String
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Method setName.
	 * @param name String
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * Method getAddress.
	 * @return String
	 */
	public String getAddress() {
		return address;
	}
	
	/**
	 * Method setAddress.
	 * @param address String
	 */
	public void setAddress(String address) {
		this.address = address;
	}
	
	/**
	 * Method getPhoneNumber.
	 * @return String
	 */
	public String getPhoneNumber() {
		return phoneNumber;
	}
	
	/**
	 * Method setPhoneNumber.
	 * @param phoneNumber String
	 */
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
	/**
	 * Method getEmailAddress.
	 * @return String
	 */
	public String getEmailAddress() {
		return emailAddress;
	}
	
	/**
	 * Method setEmailAddress.
	 * @param emailAddress String
	 */
	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}
	
	/**
	 * Method getGender.
	 * @return char
	 */
	public char getGender() {
		return gender;
	}
	
	/**
	 * Method setGender.
	 * @param gender char
	 */
	public void setGender(char gender) {
		this.gender = gender;
	}
	
	/**
	 * Method getAge.
	 * @return int
	 */
	public int getAge() {
		return age;
	}
	
	/**
	 * Method setAge.
	 * @param age int
	 */
	public void setAge(int age) {
		this.age = age;
	}
}
